﻿using System;
using System.Configuration;
using System.Web.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CacheHelper;
using ServiceStack.Redis;

namespace UnitTestRedis
{
    [TestClass]
    public class UnitTest1
    {
       [TestMethod] 
        public  void TestMethod1()
        {

            //string server = WebConfigurationManager.AppSettings["Rediscacheserver"];
            //string host = server.Split(':')[0];
            //int port = Int32.Parse(server.Split(':')[1]);
            //RedisClient redisClient = new RedisClient("127.0.0.1", 6379);
            // redisClient.Add("bitch", "delete", DateTime.Now.AddMinutes(1));
            //string str = redisClient.GetValue("bitch").ToString();
         //   Assert.IsNotNull(redisClient);
        }
    }
}
